((ActionBarActivity)getActivity()).setSupportActionBar(mToolbar); if you are using AppCompatActivity ((AppCompatActivity)getActivity()).setSupportActionBar(mToolbar);